package com.ioc.dao;


import com.ioc.pojo.User;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.List;


/**
 * Created by win10 on 2020/2/8 13:50
 */
@Repository
public class UserDao {
    public List<User> queryUserList() {
        List<User> list = new ArrayList<User>();
        //模拟数据库
        for (int i = 1; i < 6; i++) {
            User user = new User();
            user.setUserName("userName" + i);
            user.setPassword("password" + i);
            user.setUpdateTime("time" + i);
            list.add(user);
        }
        return list;

    }
}
